<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="utf-8"/>
        <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0" />
        <title></title>
    <!-- <script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
    <link href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"> -->
    <script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../mycss/main.css"/>
    <link rel="stylesheet" href="../bootstrap-3.3.7-dist/css/bootstrap.css" media="screen"/>
    <div th:include="header :: header"/>
    <style>
        .bg{
            width:auto;
            margin:0px auto;
            text-align: center;
        }
        
        img{
            width:auto;
            max-width:100%;
        }
    </style>
    </head>
    <body> 
    <!-- <span th:text="${userId}"></span> -->
        <div class="bg">
            <img src="https://s1.ax1x.com/2018/03/19/9TE6JJ.jpg" alt="9TE6JJ.jpg" border="0" />
        </div>
        <div class="bg">
            <button type="button" class="btn btn-info btn-lg" style="margin-right:5vmin" onclick="myCheckRoom()">我的看房</button>
            <button type="button" class="btn btn-default btn-lg" onclick="home()">返回主页</button>
        </div>
    <script th:inline="javascript">
    // 去我的看房页面
    function myCheckRoom() {
        var userId = [[${userId}]];
        var url = "http://58.87.74.194:8029/checklist" + "?userId=" + userId;
        window.location.href = url;
    }
   
    // 去我的主页
    function home() {
        var userId = [[${userId}]];
        var url = "http://111.230.107.192:8082/home" + "?userId=" + userId;
        window.location.href = url;
    }
    </script>
    </body>
</html>